package com.yunwuliu.controller;

import com.yunwuliu.request.LoginRequest;
import com.yunwuliu.request.RegisterRequest;
import com.yunwuliu.response.CommonResponse;
import com.yunwuliu.response.LoginResponse;
import com.yunwuliu.response.RegisterResponse;
import com.yunwuliu.service.LoginService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author 16375
 * @version 1.0
 * @description: TODO
 * @date 2025/7/22 12:37
 */
@RestController
@RequestMapping
public class LoginController {

    @Resource
    LoginService loginService;
    @GetMapping("/login")
    public <T> CommonResponse<T> login(LoginRequest request) {
        loginService.login(request);
        return CommonResponse.success( null);
    }




}
